.class Lcom/teewoo/app/bus/ui/HomeSystemTab$1;
.super Ljava/lang/Object;
.source "HomeSystemTab.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/HomeSystemTab;->createTabContent(Ljava/lang/String;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/HomeSystemTab;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    .line 58
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/HomeSystemTab$1;)Lcom/teewoo/app/bus/ui/HomeSystemTab;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    return-object v0
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 9
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 64
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    packed-switch p3, :pswitch_data_0

    .line 111
    :goto_0
    return-void

    .line 67
    :pswitch_0
    new-instance v8, Lcom/teewoo/app/bus/util/VersionUtil;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    invoke-direct {v8, v0}, Lcom/teewoo/app/bus/util/VersionUtil;-><init>(Landroid/content/Context;)V

    .line 68
    .local v8, verUtil:Lcom/teewoo/app/bus/util/VersionUtil;
    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->checkVersion()V

    .line 69
    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->hasNewerVersion()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 70
    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->getUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 71
    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->getUrl()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/teewoo/app/bus/ui/HomeSystemTab;->URL_DOWNLOAD:Ljava/lang/String;

    .line 72
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f08001d

    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->getDescription()Ljava/lang/String;

    move-result-object v2

    .line 73
    const v3, 0x7f02005d

    invoke-virtual {v8}, Lcom/teewoo/app/bus/util/VersionUtil;->isForceUpgrade()Z

    move-result v4

    new-instance v5, Lcom/teewoo/app/bus/ui/HomeSystemTab$1$1;

    invoke-direct {v5, p0}, Lcom/teewoo/app/bus/ui/HomeSystemTab$1$1;-><init>(Lcom/teewoo/app/bus/ui/HomeSystemTab$1;)V

    .line 81
    const/4 v6, 0x0

    .line 72
    invoke-static/range {v0 .. v6}, Lcom/teewoo/app/bus/util/DialogUtil;->askUpdateDialog(Landroid/content/Context;ILjava/lang/String;IZLandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    .line 84
    :cond_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080013

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/ToastUtil;->showToast(Landroid/content/Context;I)V

    goto :goto_0

    .line 88
    .end local v8           #verUtil:Lcom/teewoo/app/bus/util/VersionUtil;
    :pswitch_1
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080016

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/DialogUtil;->baseDialog(Landroid/content/Context;I)V

    goto :goto_0

    .line 91
    :pswitch_2
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 92
    .local v7, intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://doudou360.com/DouDouHelp.htm"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 93
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 96
    .end local v7           #intent:Landroid/content/Intent;
    :pswitch_3
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 97
    .restart local v7       #intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://doudou360.com/DouDouUs.htm"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 98
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 101
    .end local v7           #intent:Landroid/content/Intent;
    :pswitch_4
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 102
    .restart local v7       #intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://doudou360.com/dd_xm_hotapp_android.htm?from=doudou360.com"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 103
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 106
    .end local v7           #intent:Landroid/content/Intent;
    :pswitch_5
    new-instance v7, Landroid/content/Intent;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {v7, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 107
    .restart local v7       #intent:Landroid/content/Intent;
    const-string v0, "com.teewoo.app.bus.url"

    const-string v1, "http://k.ai/mobile/tools/outer?reflink=0111&bid=1"

    invoke-virtual {v7, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 108
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeSystemTab$1;->this$0:Lcom/teewoo/app/bus/ui/HomeSystemTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeSystemTab;->access$2(Lcom/teewoo/app/bus/ui/HomeSystemTab;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 64
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method
